<?php
class app_manageModel extends baseModel{

    //列表
    public function app_list() {
        $list=getApps();
        if(!empty($list)){
            foreach ($list as $value) {
                $data[$value]=appConfig($value);
            }
        }
        return $data;
    }

    //卸载数据库
    public function uninstall( $table=null ){
        if(empty($table)){
            return;
        }
        $tables=explode(',', $table);
        $config=config('DB');
        foreach($tables as $table){
            $table = '`' . $config('DB_PREFIX') . trim($table) . '`';
            $this->query("DROP TABLE $table ");
        }
    }



	
}